#ifndef __RELAY_H_
#define __RELAY_H_

#include "MyApplication.h"

//定义枚举类型
typedef enum
{
  Relay_Status_OFF  = (uint8_t)0,    //继电器断开状态
  Relay_Status_ON   = (uint8_t)1     //继电器吸合状态
}Relay_Status_t;

//定义结构体类型
typedef struct
{
    Relay_Status_t Relay_Status;
    void (*Relay_ON)(void);
    void (*Relay_OFF)(void);
    void (*Relay_Flip)(void);
}Relay_t;

/* extern variables-----------------------------------------------------------*/
extern Relay_t Relay;
/* extern function prototypes-------------------------------------------------*/ 

#endif
/********************************************************
  End Of File
********************************************************/
